<!doctype html>
<html lang="en">
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <title>DGPT4537 Assignment1 - Mythical Figures</title>
    <!-- 引入Bootstrap CSS -->
    <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/css/bootstrap.min.css" rel="stylesheet">
    <style>
        body {
            background-color: #f8f9fa;
            color: #343a40;
            font-family: 'Arial', sans-serif;
        }
        .hero-container {
            max-width: 800px;
            margin: 40px auto;
            padding: 30px;
            background-color: #fff;
            border-radius: 15px;
            box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
            transition: transform 0.2s ease, box-shadow 0.2s ease;
        }
        .hero-container:hover {
            transform: scale(1.02);
            box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
        }
        .hero-image {
            display: block;
            margin: 20px 0;
            width: 100%;
            height: auto;
            border-radius: 10px;
            box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
        }
        .info-item {
            margin-bottom: 1rem;
            font-size: 1.1rem;
        }
        .info-item strong {
            font-weight: bold;
            color: #007bff;
        }
        .home-link {
            display: flex;
            justify-content: center;
            margin-top: 20px;
        }
        .btn-custom {
            background: linear-gradient(135deg, #ff6f61, #ec407a);
            color: #fff;
            padding: 10px 20px;
            border: none;
            border-radius: 5px;
            font-size: 1rem;
            cursor: pointer;
            text-decoration: none;
            display: inline-block;
            transition: transform 0.2s ease, box-shadow 0.2s ease;
        }
        .btn-custom:hover {
            transform: scale(1.05);
            box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
        }
        footer {
            margin-top: 40px;
            padding: 20px 0;
            text-align: center;
            background-color: #343a40;
            color: #fff;
        }
        footer a {
            color: #fff;
            text-decoration: none;
        }
        footer a:hover {
            text-decoration: underline;
        }
    </style>
</head>
<body>
    <!-- 使用Bootstrap的容器 -->
    <div class="container">
        <div class="hero-container">
            <h1 class="text-center">Mythical Figures</h1>
            <div class="info-item">
                <strong>ID:</strong> <span id="id"><?= esc($record->id) ?></span>
            </div>
            <div class="info-item">
                <strong>Name:</strong> <span id="name"><?= esc($record->name) ?></span>
            </div>
            <div class="info-item">
                <strong>Place:</strong> <span id="city"><?= esc($record->city) ?></span>
            </div>
            <div class="info-item">
                <strong>Powers:</strong> <span id="powers"><?= esc($record->powers) ?></span>
            </div>
            <div class="info-item">
                <strong>Weapon:</strong> <span id="weapon"><?= esc($record->weapon) ?></span>
            </div>
            <img src="/image/<?= esc($record->image) ?>" alt="<?= esc($record->name) ?> Image" class="hero-image img-fluid">
            <p class="home-link">
                <a href="/home" class="btn btn-custom">Home</a>
            </p>
        </div>
    </div>

    <!-- 添加页脚 -->
    <footer>
        <div class="container">
            <p>&copy; 2024 DGPT4537 Assignment1. All rights reserved. | 
               <a href="/privacy">Privacy Policy</a> |
               <a href="/terms">Terms of Service</a>
            </p>
        </div>
    </footer>

    <!-- 引入Bootstrap JS和依赖 -->
    <script src="https://cdn.jsdelivr.net/npm/@popperjs/core@2.11.6/dist/umd/popper.min.js"></script>
    <script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/js/bootstrap.bundle.min.js"></script>
</body>
</html>